import request from "@/utils/request.js";

//获取后台文章列表
export const sysArticleListService=(params)=>{
    return request({
        method:'get',
        url:'/article/sys/list?category.categoryName='+params.categoryName+'&user.username='+params.username,
        params:params
    })
}

//获取后台文章分类列表
export const sysCategoryListService=(params)=>{
    return request({
        method:'get',
        url:'/category/sys/list?user.username='+params.username,
        params:params
    })
}

//获取用户的文章分类列表
export const categoryListByUserIdService=(userId)=>{
    return request({
        method:'get',
        url:'/category/list/userId?userId='+userId
    })
}